<div class="contents form">
<?php echo $this->ExtendedForm->create('Content', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Content'); ?></h3>
	<?php
		if(isset($this->request->params['named']['id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('id', array_merge(array('label' => __d('admin', 'Id'))));
		if(isset($this->request->params['named']['id'])) echo '</div>';

		if(isset($this->request->params['named']['category_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('category_id', array_merge(array('label' => __d('admin', 'Category')), array('options' => $categoriesSelect, 'empty' => '- ' . __d('admin', 'Choose a Category') . ' -')));
		if(isset($this->request->params['named']['category_id'])) echo '</div>';

		if(isset($this->request->params['named']['text'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('text', array_merge(array('label' => __d('admin', 'Text'))));
		if(isset($this->request->params['named']['text'])) echo '</div>';

		if(isset($this->request->params['named']['text_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('text_eng', array_merge(array('label' => __d('admin', 'Text Eng'))));
		if(isset($this->request->params['named']['text_eng'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Content'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>